package com.xaicode.template.gendata.base;

import java.util.Date;
import java.util.Random;

/**
 * @author Locker xaicode@sina.com
 * @version 1.0
 * @date 2022/5/24 0024 20:49
 */
public abstract class Generator {

    public abstract String generate();

    private static Random random = null;

    protected Random getRandomInstance() {
        if (random == null) {
            random = new Random(new Date().getTime());
        }

        return random;
    }

}
